.class public Les/gk0;
.super Ljava/lang/Object;
.source "ChunkCalculatorFactory.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/gk0$b;,
        Les/gk0$c;,
        Les/gk0$d;
    }
.end annotation


# static fields
.field private static a:Les/gk0$c;


# direct methods
.method public static a(Lorg/json/JSONObject;)Lcom/ss/android/socialbase/downloader/downloader/i;
    .locals 2

    if-eqz p0, :cond_0

    const-string v0, "download_chunk_config"

    .line 8
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 9
    invoke-static {v0}, Les/jo0;->f(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 10
    invoke-static {p0}, Les/gk0;->c(Lorg/json/JSONObject;)Lcom/ss/android/socialbase/downloader/downloader/i;

    move-result-object p0

    return-object p0

    :cond_0
    const/4 p0, 0x0

    return-object p0
.end method

.method public static a(Ljava/lang/String;)Lcom/ss/android/socialbase/downloader/downloader/j;
    .locals 2

    .line 1
    sget-object v0, Les/gk0;->a:Les/gk0$c;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Les/gk0$c;

    invoke-static {}, Les/lk0;->i()Lorg/json/JSONObject;

    move-result-object v1

    invoke-direct {v0, v1}, Les/gk0$c;-><init>(Lorg/json/JSONObject;)V

    sput-object v0, Les/gk0;->a:Les/gk0$c;

    .line 3
    :cond_0
    new-instance v0, Les/gk0$b;

    sget-object v1, Les/gk0;->a:Les/gk0$c;

    invoke-direct {v0, v1, p0}, Les/gk0$b;-><init>(Les/gk0$c;Ljava/lang/String;)V

    return-object v0
.end method

.method public static a(Ljava/lang/String;Lorg/json/JSONObject;)Lcom/ss/android/socialbase/downloader/downloader/j;
    .locals 2

    if-eqz p1, :cond_0

    const-string v0, "download_chunk_config"

    .line 4
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 5
    invoke-static {v0}, Les/jo0;->f(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 6
    invoke-static {p1}, Les/gk0;->b(Lorg/json/JSONObject;)Lcom/ss/android/socialbase/downloader/downloader/j;

    move-result-object p0

    return-object p0

    .line 7
    :cond_0
    invoke-static {p0}, Les/gk0;->a(Ljava/lang/String;)Lcom/ss/android/socialbase/downloader/downloader/j;

    move-result-object p0

    return-object p0
.end method

.method public static b(Lorg/json/JSONObject;)Lcom/ss/android/socialbase/downloader/downloader/j;
    .locals 1

    .line 1
    new-instance v0, Les/gk0$c;

    invoke-direct {v0, p0}, Les/gk0$c;-><init>(Lorg/json/JSONObject;)V

    return-object v0
.end method

.method public static c(Lorg/json/JSONObject;)Lcom/ss/android/socialbase/downloader/downloader/i;
    .locals 1

    .line 1
    new-instance v0, Les/gk0$d;

    invoke-direct {v0, p0}, Les/gk0$d;-><init>(Lorg/json/JSONObject;)V

    return-object v0
.end method
